#include "MainWindow.h"

#include "ui_MainWindow.h"

MainWindow::MainWindow(): QMainWindow() {
    ui = new Ui::MainWindow();
    ui->setupUi(this);
    connect(ui->glWidget, SIGNAL(drawObjects()), this, SLOT(drawObjects()));
    scene = loja3Scene();
}

MainWindow::~MainWindow() {
    delete ui;
    delete scene;
}

void MainWindow::drawObjects() {
    scene->draw();
}

void MainWindow::switchScene() {
    delete scene;
    scene = loja1Scene();
}
